﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;

using Ingenious.Graph;

using MongoDB.Bson;

namespace Ingenious.Core.TestHarness
{
    public class ContentDataTemplateSelector : DataTemplateSelector
    {
        public override System.Windows.DataTemplate SelectTemplate(object item, System.Windows.DependencyObject container)
        {
            DataTemplate dataTemplate = null;

            if( item is NodeViewModelItem<Guid> || item is NodeViewModelItem<ObjectId> )
            {
                dataTemplate = (DataTemplate)App.Current.Resources["NodeContentTemplate"];
            }
            
            return dataTemplate;
        }
    }
}
